Skip to content

Instantly share code, notes, and snippets.

@koster
koster / TaskManager.cs
Created July 22, 2025 18:42
TaskManager.cs - control your coroutines
using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using DG.Tweening;
using UnityEngine;
public class TaskManager : MonoBehaviour
{
public float targetFrameTime = 1f / 60f; // Default to 60fps equivalent
@artshooter
artshooter / CLAUDE.md
Created January 2, 2026 16:46
Vibe Language Learning in claude(VLL)

Vibe Language Learning (VLL)

An immersive language learning feature. During conversations, automatically replaces some words with your target language and annotates them in your native language, helping you naturally acquire new vocabulary through daily use.

Current Settings

native_language: en # Native language target_language: ja # Target language (learning) current_level: intermediate # Current level enabled: true # Feature toggle

@julianlam
julianlam / laptop-s2idle-to-deep.md
Last active January 2, 2026 18:41
Changing laptop suspend from s2idle to deep sleep #blog

One thing I noticed ever since I bought my second Dell XPS was that the battery life was relatively abysmal when the laptop was asleep. I'd suspend my laptop at work, bring the laptop home, and the next morning I'd be down 25-50% of my battery life! More than once, I'd leave my laptop for a couple days and come back to a completely dead laptop1.

My first inclination was that the laptop was waking up on its own. It does happen occasionally with Linux (which, in an of itself, is pretty concerning2), but in this case, I was reasonably certain it wasn't the case, as evidenced by the battery drop overnight when waking a still-sleeping laptop.

While there are a plethora of articles online about sleep/standby (suspend to RAM) and hibernate (suspend to disk), the root cause was that some hardware configurations support three different modes of sleep: s2idle, shallow, and deep.

According to the [Linux Kernel documentation](https://www.kernel.org/doc/html/v4.15/admin-guide/pm/sleep-states

@vildanbina
vildanbina / README.md
Last active January 2, 2026 18:40
Show 5h/7d API usage in your terminal statusline

CC Usage Statusline

Shows your 5-hour and 7-day API usage limits in your terminal statusline.

5h: 42% | 7d: 23%

No more guessing how much capacity you have left.

@arch1t3cht
arch1t3cht / video_noob_guide.md
Last active January 2, 2026 18:39
What you NEED to know before touching a video file

What you NEED to Know Before Touching a Video File

Hanging out in subtitling and video re-editing communities, I see my fair share of novice video editors and video encoders, and see plenty of them make the classic beginner mistakes when it comes to working with videos. A man can only read "Use Handbrake to convert your mkv to an mp4 :)" so many times before losing it, so I am writing this article to channel the resulting psychic damage into something productive.

If you are new to working with videos (or, let's face it, even if you aren't), please read through this guide to avoid making mistakes that can cost you lots of computing power, storage space, or video quality.

@ctrueden
ctrueden / Linux-Meta-Quest.md
Created July 23, 2025 12:14
Linux + Meta Quest 3S

2025-04-27: The way I play VR games wirelessly on Linux e.g. from Steam is to use WiVRn (a fork of Monado) via the Envision orchestrator.

Here's the path I followed to get it working with my Meta Quest 3S:

  1. Download the appImage as linked from the Envision page of the Linux VR Adventures wiki.

  2. Launch Envision from the terminal (so that you can see its console messages). In the GUI at the bottom is a combo box. Select WiVRn as the desired system. Then at the top of the GUI is a button to configure and build it. You will likely need to apt install some prerequisites first. (2025-04-23) Envision wanted me to installed these packages for Lighthouse profile:

    sudo apt install libeigen3-dev glslang-tools glslc libbsd-dev libdrm-dev \
        libusb-1.0-0 libusb-1.0-0-dev libx11-xcb-dev libxcb-
@mmozeiko
mmozeiko / !README.md
Last active January 2, 2026 18:36
Download MSVC compiler/linker & Windows SDK without installing full Visual Studio

This downloads standalone MSVC compiler, linker & other tools, also headers/libraries from Windows SDK into portable folder, without installing Visual Studio. Has bare minimum components - no UWP/Store/WindowsRT stuff, just files & tools for native desktop app development.

Run py.exe portable-msvc.py and it will download output into msvc folder. By default it will download latest available MSVC & Windows SDK from newest Visual Studio.

You can list available versions with py.exe portable-msvc.py --show-versions and then pass versions you want with --msvc-version and --sdk-version arguments.

To use cl.exe/link.exe first run setup_TARGET.bat - after that PATH/INCLUDE/LIB env variables will be updated to use all the tools as usual. You can also use clang-cl.exe with these includes & libraries.

To use clang-cl.exe without running setup.bat, pass extra /winsysroot msvc argument (msvc is folder name where output is stored).

@devhammed
devhammed / countries.json
Last active January 2, 2026 18:32
Countries with Name, Dial Code, Emoji Flag and ISO Code
[
{
"name": "Afghanistan",
"flag": "🇦🇫",
"code": "AF",
"dial_code": "+93"
},
{
"name": "Åland Islands",
"flag": "🇦🇽",